﻿#region License statement
// NJamb, a specification and delta-specification DSL
// Copyright (c) 2010-2011, Mark Knell
// Published under the MIT License; all other rights reserved
#endregion

#region using...
using System.Linq;
using NJamb.DemoCode.Schoolbuses;
using NUnit.Framework;
#endregion

namespace NJamb.DemoCode.Antipatterns
{
    [TestFixture]
    public class LostInsightOfGoodNames
    {
        [Test]
        public void Foo()
        {
            Assert.That(new Schoolbus().Tires, Has.Count.GreaterThan(0));
            Assert.That(new Schoolbus().Tires, Has.All.Matches<Tire>(x => x.Punctured));
            Assert.That(new Schoolbus().Tires.Any(x => x.Punctured), Is.False);
        }
    }
}
